import {postRequest} from '../../util/fetch';

export const getReward = () => postRequest('/mobile/bubble/getReward.shtml');
export const getTaskListState = () => postRequest('/mobile/task/getTaskBox.shtml');
export const getTokenAndPower = () =>
  postRequest('/mobile/account/getTokenAndPower.shtml');
export const fireReward = bubbleId =>
  postRequest('/mobile/bubble/fireReward.shtml', {bubbleId}, false);
export const getPowerKing = () => postRequest('/mobile/power/getPowerKing.shtml');
export const getTokenLog = data =>
  postRequest('/mobile/token/getTokenLog.shtml', {...data}, false);
export const getPowerLog = data =>
  postRequest('/mobile/power/getPowerLog.shtml', {...data}, false);
export const getDataInfo = () => postRequest('/mobile/account/getDataInfo.shtml'); // 数据资产统计
export const getBaseInfoAssets = () =>
  postRequest('/mobile/account/getBaseInfo.shtml'); // 基本信息
export const getSampleInfo = data =>
  postRequest('/mobile/account/getSampleInfo.shtml', {...data}, false); // 组数据详情
export const getLinkTokenAuth = data =>
  postRequest('/mobile/account/getLinkTokenAuth.shtml', {...data}, false); // 链克口袋签名请求地址
export const dataSignState = data =>
  postRequest('/mobile/account/dataSignState.shtml', {...data}, false);

//获取分享图片
export const getShareImage = data =>
  postRequest('/mobile/account/getShareImage.shtml', {...data});
//验证码
export const sendPhoneCode = data =>
  postRequest('/mobile/account/sendPhoneCode.shtml', {...data});
